package com.cskaoyan.typehandler;

public class IntegerArrayUtils {

    public static Integer[] change(String s){
        if (s !=null && !"".equals(s)) {
            String substring = s.substring(1, s.length() - 1);
            String[] split = substring.split(",");
            Integer[] integers = new Integer[split.length];
            for (int i = 0; i < split.length; i++) {
                integers[i] = Integer.parseInt(split[i]);
            }
            return integers;
        }
        return new Integer[0];
    }
}
